#ifndef __BSP_TIMER_H
#define __BSP_TIMER_H

#include "gd32f4xx.h"

#define MODBUS_TIMER_PERIPH	RCU_TIMER4
#define MODBUS_TIMER		TIMER4
#define MODBUS_TIMER_IRQn	TIMER4_IRQn

#define GUI_TIMER_PERIPH	RCU_TIMER3
#define GUI_TIMER			TIMER3
#define GUI_TIMER_IRQn		TIMER3_IRQn
#define GUI_TIMER_IRQHandler	TIMER3_IRQHandler

void ModBus_Timer_Init(uint16_t us_50);
void ModBus_Timer_Enable(void);
void ModBus_Timer_Disable(void);
void GUI_TIMER_Init(void);
#endif /* __BSP_TIMER_H */
